export interface GridView {
  tableFields?: TableFiled[];
  operations?: Operation[];
}

/**
 * @field 字段
 * @text  显示名称
 * @type 字段类型 {1:text,2:操作,3:图片,4：过滤器,5: html}
 * pip 为管道属性，目前支持date:时间管道， type类型管道，根据接口返回状态码转换成对应标签方便展示
 * @hidden 是否隐藏
 */
export interface TableFiled {
  field?: string;
  text: string;
  type?: number;
  isHidden?: boolean;
  pip?: {
    name: 'date' | 'type',
    value: any
  };
}

export interface Operation {
  text: string;
  key?: string;
  isConfirm?: boolean;
  title?: string;
  event: any;
}

export interface SearchParams {
  params?: { [key: string]: any };
  values?: { [key: string]: any };
}
